import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import components from '@/components/index.js'
import 'normalize.css'
import directive from '@/directive/index'
// 样式重置
import '@/styles/common.less'
// import Message from '@/components/message'
// 类似于Vue2中的Vue.prototype.$message = Message
// const app = createApp(App)
// app.config.globalProperties.$message = Message
createApp(App).use(store).use(router).use(components).use(directive).mount('#app')
// vue3中插件的格式全局注册组件
// const MyPlugin = {
//   install (app) {
//     app.component('组件名', 组件对象)
//   }
// }
// app.use(MyPlugin)
